<template>
	<view>

	</view>
</template>
<script>
	export default {
		data() {
			return {
				details: {},
				id: 1
			}
		},
		onLoad(e) {
			if (e.id) {
				this.id = e.id;
			}
		},
		onShow() {
			this.getData();
		},
		methods: {
			getData() {
				this.$api['post']('Article/detail', {
					id: this.id
				}).then(res => {
					if (res.code == 200) {
						this.details = res.data;
					}
				});

			},
		}
	}
</script>

<style>

</style>